package com.Deome.Class13;

import java.util.HashMap;

public class Numbers1 {
    public static void main(String[] args) {
        HashMap<Character,Integer>map=new HashMap<>();
        String str="fje你kw我FDQfj你feAf他Eajf他eo2FA我FEjfew";
        for (int i=0;i<str.length();i++){
            char ch=str.charAt(i);
            if (map.containsKey(ch)){
                Integer index=map.get(ch);
                Integer put=map.put(ch,index+1);
            }else {
                Integer put=map.put(ch,1);
            }
        }
        System.out.println(map);
    }
}
